home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / DEMON / RISCOS2 / ARCKA9Q1.ARC / h / FINGER < prev    next >
Text File  |  1992-02-19  |  1KB  |  39 lines

  1.  
  2. /*
  3.  *
  4.  *      Finger support...
  5.  *
  6.  *      Finger header defines.  Written by Michael T. Horne - KA7AXD.
  7.  *      Copyright 1988 by Michael T. Horne, All Rights Reserved.
  8.  *      Permission granted for non-commercial use and copying, provided
  9.  *      that this notice is retained.
  10.  *
  11.  */
  12.  
  13. #define FINGER_PORT     79      /* TCP port for `who' (finger) service */
  14. #define FINGNAMELEN     8       /* max len of user name */
  15.  
  16. /* finger protocol control block */
  17. struct finger {
  18.         struct tcb      *tcb;           /* pointer to associated tcb */
  19.         struct session  *session;       /* pointer to finger session */
  20.         char            *user;          /* name of user to finger */
  21. };
  22. #define NULLFING        (struct finger *) 0
  23.  
  24. extern char             fingerpath[];    /* see files.c */
  25.  
  26.  
  27. /* In FINGCLI */
  28. int dofinger(int, char **);
  29. struct finger *alloc_finger(void);
  30. int free_finger(struct finger *);
  31. void fingcli_rcv(struct tcb *, int16);
  32. void f_state(struct tcb *, char, char);
  33.  
  34. /* In FINGSERV */
  35. int finger1(int, char **);
  36. void fing_state(struct tcb *, char, char);
  37. int finger0(void);
  38. void rcv_fing(struct tcb *, int16);
  39.